class cola{
    int c;

    public cola(int c) {
        this.c = c;
    }
    /*    public cola(int c) {
        this.c = c;
    }*/

/*    public cola(int c) {
        this.c = c;
    }*/
}
class water extends cola{
    int a;
    int b;
    public water(int c){
        super(c);
        System.out.println("子类构造方法");
    }
/*    public void show(){
        System.out.println(c);
    }*/
/*    public water(int a, int b) {
//        super(1);
        this.a = a;
        this.b = b;
    }*/
}
public class test{
    public static void main(String[] args) {
        water w = new water(1);
    }
}
/*
*     int b;
    {
        System.out.println("构造代码段");
    }*/


/*
import java.util.SplittableRandom;

*/
/**
 * 可变参数
 *//*


class stu {
    private String name;
    public int age;
    public int height;
}

class xiaoming extends stu{
    public String play;
}
class zhangsan extends stu{
    public String study;
}

class big{
    public int a;

    public big(int a) {
        this.a = a;
    }
}
class small extends big{
//    public int a = 3;
    public small(){
        super(1);
    }
    public void show(){
        System.out.println(super.a);
    }
}
public class test {
    public static void main(String[] args) {

        new small().show();
    }
*/
/*    private float a = 1.0f;
    public static int x = 100;
    private int count;
    public static void main(String[] args) {
        test ret = new test(88);
        System.out.println(ret.count);
    }
    test(int a) {
        count = a;
    }*//*

*/
/*    public static void main2(String[] args) {
        test a = new test();
        a.x++;
        test b = new test();
        b.x++;
        a = new test();
        a.x++;
        test.x--;
        System.out.println(x);
    }
    public static void main1(String[] args) {
        test b = new test();
        b.a = 3.0f;
    }*//*

    */
/*String tem;
    public static void main(String[] args) {
        System.out.println(new test().tem);
        System.out.println(new test().tem);
    }*//*

}
*/
/*public class test {
    String tem;
    public static void main(String[] args) {
        test a = new test();
        System.out.println(a.tem);
    }
}*//*

 */
/*   public static void main1(String[] args) {
        *//*
*/
/*person tem1 = new person();
        System.out.println("================");
        person tem2 = new person();
        System.out.println(tem1);
        System.out.println(tem2);*//*
*/
/*
        person tem = new person();

    }*//*

class person {
    public static int time;
    public String name;
    person() {
        System.out.println("构造方法");
        person.time = 1;
        this.name = "张三";
    }
*/
/*    public void show() {
        System.out.println(person.time);
    }*//*

    public static void Sshow() {
        System.out.println(person.time);
    }
    static {
        System.out.println("静态代码块");
    }
    static {
        System.out.println("静态代码块2");
    }

    {
        System.out.println("构造代码块");
    }

    @Override
    public String toString() {
        return "person{" +
                "name='" + name + '\'' +
                '}';
    }
}
*/
